<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script type="text/javascript" src="<?php echo C('SITE_URL'); echo C('AD_JS_URL');?>jquery-1.8.3.min.js"></script>
	<script  type="text/javascript" >
		$(function(){
			//定义一个函数,用于完成倒计时效果
			$("#code").click(function(){
				//获取输入的手机号码
				var telephone = $("#telephone").val();
				//ajax请求文件，调用短信发送的接口
				$.ajax({
					type:'POST',
					url:'/xgxad/index.php/Admin/Manager/sendMsg',
					data:{"telephone":telephone},
					success:function(msg){
						//alert(msg);
						//判断调用短信发送接口是否成功，
						if(msg==0){
							//调用接口已经成功
							alert('短信验证码已经发送成功');
						}
					}
				});
			});
		});
	</script>
</head>
<body>

	<form action="<?php echo U('register');?>" method="post">
		<section class="register-content">

				<ul class="login-box">
					<li>
						<label>手机</label>
						<input type="text" class="lr-input telephone" name="telephone" id="telephone" placeholder="请输入手机号" />
					</li>
					<li>
						<label>验证码</label>
						<input type="text" class="lr-input" class="confirm" id="capture" name="capture" placeholder="请输入验证码" />
						<span>
							<input type="button"  name="" id="code" value="验证码" />
						</span>
					</li>
					<li>
						<label>密码</label>
						<input type="text"class="lr-input password" id="pwd" name="password" placeholder="请创建不少于6位密码" />
						<!-- <span class="error">密码至少六位</span> -->
					</li>
					<li>
						<input type="submit" value="注册"  />
					</li>
				</ul>

			<p class="show-content"></p>
		</section>
	</form>
	
</body>
</html>